﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst.Context;

using DevWeb.Biztalk.DeploymentSettings.WebUI.Bootstrapper;
using DevWeb.Biztalk.DeploymentSettings.WebUI.Elmah;
using Microsoft.Ajax.Utilities;
using Microsoft.Practices.Unity;

namespace DevWeb.Biztalk.DeploymentSettings.WebUI.Controllers
{

  //  [ElmahHandleError]
    public class BaseController : Controller
    {

      
        public  DeploymentSettingsContext Context { get; set; }

        public BaseController()
        {
            AutoMapperBootstrap.AutomapperConfigure();

            if (Context == null)
            {
                Context = new DeploymentSettingsContext();
            }
        }

        protected override void OnException(ExceptionContext filterContext)
        {
            base.OnException(filterContext);
        }
    }

  
}